﻿using MoetutuTranslate.Helper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MoetutuTranslate.ScannerHelper
{
    class Sacnner
    {
        public static async Task<List<string>> GetListAsync(String WebUrl) {
         
            StaticValue.Tip = "正在读取网页";
            string Shtml = WebHelper.HttpGet(WebUrl);
            Console.WriteLine("网页读取结束");
            List<String> TagTemp = HtmlHelper.GetTextValueList(Shtml, "//li[@class='tag-links']");
            Console.WriteLine("获取到{0}个tag",TagTemp.Count);
            return TagTemp;
       
        }

      
    }
}
